//
//  LHRadioDownloadManager.h
//  EPA
//
//  Created by 卢浩 on 16/4/27.
//  Copyright © 2016年 卢浩. All rights reserved.
//

#import <Foundation/Foundation.h>
@class LHRadioDownloadTask;
@class LHRadioDetailModel;

typedef void(^ProgressBlock)(float progress);
typedef void(^CompleteBlock)(NSString *path);

@interface LHRadioDownloadManager : NSObject

@property (nonatomic,strong) NSMutableArray *downloadArr;

@property (nonatomic,strong) NSMutableArray *tempDownloadArr;

@property (nonatomic,strong) NSMutableArray *array;

- (void)addDownloadTaskWithModel:(LHRadioDetailModel *)model ProgressBlock:(ProgressBlock)proBlock CompleteBlock:(CompleteBlock)comBlock;

//单例
+ (instancetype)shareManager;

//当前下载任务个数
- (NSInteger)count;

//取标题
- (NSString *)getTitleWithIndex:(NSInteger)index;

//设置block
- (void)setProgressBlock:(ProgressBlock)proBlock CompleteBlock:(CompleteBlock)comBlock Index:(NSInteger)index;

@end

@interface DownloadManagerTask : NSObject

@property (nonatomic,strong) LHRadioDetailModel *model;

@property (nonatomic,strong) LHRadioDownloadTask *downloadTask;

@end

